package com.tfjybj.itoo.teach.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dmsdbj.itoo.tool.base.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
 * Audit实体
 * audit
 *
 * @author 马莹 
 * @version ${version}
 * @since ${version} 2019-05-23 17:35:00
 */
@ApiModel(value = "AuditEntity:audit")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tt_audit")
public class AuditEntity extends BaseEntity implements Serializable {

	/**
	 * 名称
	 */
    @ApiModelProperty(value = "名称")
	@Column(name = "name")
	private String name;

	/**
	 * 报修地点
	 */
    @ApiModelProperty(value = "报修地点")
	@Column(name = "address")
	private String address;

	/**
	 * 报修人
	 */
    @ApiModelProperty(value = "报修人")
	@Column(name = "promoter")
	private String promoter;

	/**
	 * 建筑编号
	 */
    @ApiModelProperty(value = "建筑编号")
	@Column(name = "building_number")
	private Integer buildingNumber;

	/**
	 * 建筑名称
	 */
    @ApiModelProperty(value = "建筑名称")
	@Column(name = "building_name")
	private String buildingName;

	/**
	 * 保修原因
	 */
    @ApiModelProperty(value = "保修原因")
	@Column(name = "reason")
	private String reason;

	/**
	 * 备注
	 */
    @ApiModelProperty(value = "备注")
	@Column(name = "remarks")
	private String remarks;

	/**
	 * 保修人Id
	 */
    @ApiModelProperty(value = "保修人Id")
	@Column(name = "promoter_id")
	private String promoterId;

	/**
	 * 受理人
	 */
    @ApiModelProperty(value = "受理人")
	@Column(name = "recipient")
	private String recipient;

	/**
	 * 受理人Id
	 */
    @ApiModelProperty(value = "受理人Id")
	@Column(name = "recipient_id")
	private String recipientId;

	/**
	 * 处理等级 0,一级处理;1.二级处理
	 */
    @ApiModelProperty(value = "处理等级 0,一级处理;1.二级处理")
	@Column(name = "grade")
	private Integer grade;

	/**
	 * 状态 0,未处理;1已经处理
	 */
    @ApiModelProperty(value = "状态 0,未处理;1已经处理")
	@Column(name = "state")
	private Integer state;

	/**
	 * 上报时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "上报时间")
	@Column(name = "reporting_time")
	private Date reportingTime;

	/**
	 * 解决时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "解决时间")
	@Column(name = "solve_time")
	private Date solveTime;

	/**
	 * 创建时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "创建时间")
	@Column(name = "create_date")
	private Date createDate;

	/**
	 * 更新时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "更新时间")
	@Column(name = "update_date")
	private Date updateDate;


}
